Skip to content

refactor(AE): VerneMQ RPC#1194

Merged
davidebriani merged 1 commit intoastarte-platform:feature/erlang-rpcfrom
lusergit:refactor/ae-verne-rpc
Apr 9, 2025
Merged

refactor(AE): VerneMQ RPC#1194
davidebriani merged 1 commit intoastarte-platform:feature/erlang-rpcfrom
lusergit:refactor/ae-verne-rpc

Conversation

@lusergit
Copy link
Copy Markdown
Collaborator

@lusergit lusergit commented Apr 7, 2025

Based on #1191
Requires astarte-platform/astarte_vmq_plugin#102

This PR moves the communication between AppEngine and the Astarte VerneMQ Plugin outside of astarte_rpc. The new strategy consists in having an rpc server shared among all VerneMQ Plugin replicas (see astarte-platform/astarte_vmq_plugin#102 for context) and making RPC calls to shuch server. AppEngine calls have to be reworked to accomodate for the changes

@lusergit lusergit force-pushed the refactor/ae-verne-rpc branch 3 times, most recently from 1c8e9fc to c9aa16a Compare April 7, 2025 12:59
@codecov
Copy link
Copy Markdown

codecov bot commented Apr 7, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 80.39%. Comparing base (354e409) to head (5cda927).
Report is 5 commits behind head on feature/erlang-rpc.

Additional details and impacted files
@@                  Coverage Diff                   @@
##           feature/erlang-rpc    #1194      +/-   ##
======================================================
- Coverage               80.42%   80.39%   -0.03%     
======================================================
  Files                      83       84       +1     
  Lines                    1941     1933       -8     
======================================================
- Hits                     1561     1554       -7     
+ Misses                    380      379       -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@lusergit lusergit requested review from Annopaolo and davidebriani and removed request for Annopaolo April 7, 2025 13:38
@lusergit lusergit marked this pull request as ready for review April 7, 2025 13:38
@lusergit lusergit force-pushed the refactor/ae-verne-rpc branch 2 times, most recently from 1cd1a07 to d72ea8a Compare April 8, 2025 12:58
Refactors the logic to handle RPC calls with astarte VerneMQ Plugin,
using the new erlang clustering strategy. AE now calls an RPC server
shared among all VerneMQ plugin replicas.

Tests are reqorked too to mock RPC calls and answers from the server

Signed-off-by: Luca Zaninotto <luca.zaninotto@secomind.com>
@lusergit lusergit force-pushed the refactor/ae-verne-rpc branch from d72ea8a to 5cda927 Compare April 8, 2025 13:00
@lusergit lusergit requested a review from davidebriani April 8, 2025 14:45
@davidebriani davidebriani merged commit 2874b6a into astarte-platform:feature/erlang-rpc Apr 9, 2025
5 checks passed
@lusergit lusergit deleted the refactor/ae-verne-rpc branch April 14, 2025 15:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants